Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Upgrade jest and testing-library dependencies #1321

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

AliceR
Copy link
Member

@AliceR AliceR commented Dec 12, 2024

Close #1322

As part of general maintenance, it's important to keep our dependencies up to date.
The main reason for this upgrade was to address the deprecation warning related to render in our logs. By using the updated Testing Library, we remove unnecessary noise from the test output.

While making this change, a few other issues have surfaced, but they are actually helpful:
We now see browser warnings, such as: Warning: validateDOMNesting(...): <ul> cannot appear as a descendant of <p>.
These are actionable errors that highlight areas where our HTML structure violates best practices.

One issue seems to stem from TypeScript. This could require adjustments to our TypeScript configuration. Is someone available to help investigate and resolve this?
Issue resolved by downgrading some @types/react and @types/react-dom. I moved all the types dependencies into the devDependencies now, so it is easier to keep track of them.

Steps to review:

  1. (optional) Remove the node_modules directory.

  2. (optional) Reinstall dependencies with the updated versions

  3. Run the test suite: yarn test

Copy link

netlify bot commented Dec 12, 2024

Deploy Preview for veda-ui ready!

Name Link
🔨 Latest commit b3a4c4f
🔍 Latest deploy log https://app.netlify.com/sites/veda-ui/deploys/675ff8ba0d145c00082ff662
😎 Deploy Preview https://deploy-preview-1321--veda-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@AliceR AliceR marked this pull request as ready for review December 12, 2024 17:04
we should clean up the issues behind those warnings and set the rules back to the recommended . Changing it to warn now only to limit the scope of the PR and not having to touch legacy code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade test libraries (jest/testing-libraries)
1 participant